package com.adcc.soundalarm;

import com.adcc.soundalarm.common.Log;
import com.adcc.soundalarm.config.regular.RegularXMLConfiguration;
import com.adcc.soundalarm.config.system.AppConfiguration;
import com.adcc.soundalarm.fx.main.MainView;
import javafx.application.Application;

/**
 * Created by ZHANG on 2017/2/10.
 */
public class App {
    public static void main(String[] args){
        AppConfiguration appConfiguration = AppConfiguration.getInstance();
        RegularXMLConfiguration regularXMLConfiguration = RegularXMLConfiguration.getInstance();
        regularXMLConfiguration.init();
        appConfiguration.init();
        try {
            Application.launch(MainView.class, args);
        } catch (Exception e) {
            Log.error("open system application window error", e);
        }
    }
}
